import Snake from "./snake.js";

export default class Game{
    constructor(map){
        this.map = map;
        this.snake = new Snake();
        this.snake.render(this.map);
        this.tick = 1000/60;
        
    }
    start(){
        this.timer = setInterval(function(){
            this.snake.move(this.tick);
        }.bind(this),this.tick);
    }
}